<?php
/**
 * Pertyler
 * Identity Page
 *
 * @author	Emre Hasegeli <hasegeli@gmail.com>
 * @license	GNU General Public License v3
 */

namespace Pertyler;

require 'main.php';

$treeView = new \KoolTreeView('treeView');

$treeView->imageFolder = $iconsFolder;

$treeView->styleFolder = 'default/';

$treeView->showLines = true;

$root = $treeView->getRootNode();

$link = new Link('http://code.google.com/p/pertyler',
		'_blank');

$root->text = $link->Html('Pertyler Database Management');

$root->expand = true;

$root->image = 'help_book.gif';

$root->showPlusMinus = false;

$link = new Link('TableBrowser.php' , 'leftMenu');

$treeView->Add('root',
		'database',
		$link->Html($page),
		true,
		'ada.gif');

$treeView->Add('database',
		'role',
		Pertyler_Role::Select(),
		true,
		'oMailbox.gif');

$link = new Link('moderator.php' , 'body');

$treeView->Add('role',
		'moderator',
		$link->Html(Pertyler_Role_Moderator::Select()),
		false,
		'oMessage.gif');

$hTML = '
<div style="padding: 10px;" >
	' . $treeView->Render() . '
</div>';

echo $page->HTML($hTML);